package com.gravata.enigma.adapter;

import java.util.List;

import android.content.Context;
import android.widget.TextView;

import com.gravata.enigma.GenericArrayAdapter;
import com.gravata.enigma.R;
import com.gravata.enigma.model.Satelite;

public class SateliteComboAdapter extends GenericArrayAdapter<Satelite>{

	public SateliteComboAdapter(Context context, List<Satelite> objects) {
		super(context,android.R.layout.simple_spinner_item,android.R.layout.simple_spinner_dropdown_item, objects,context.getString(R.string.satelite));
	}

	@Override
	public void drawText(TextView textView, Satelite object) {
		textView.setText(object.getName());
	}

}
